A man has been charged after allegedly smashing windows and threatening residents in three homes at Port Macquarie.